<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>
      <%= @page_title || @title || "DreamyDays" %>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%= yield :meta %>
    <%= stylesheet_link_tag 'css/main' %>
    <!--[if lte IE 7]>
    <%= stylesheet_link_tag 'css/patches/patch_main' %>
    <![endif]-->
    <%= javascript_include_tag 'jquery', 'jquery.preload', 'jquery.simpleddm', :cache => "hi.cache" %>
    <%= yield :head %>
  </head>
  <body>
    <div id="fb-root"></div>
    <script>
      (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));
    </script>

    <div id="page_margins">
      <div id="page">
        <%= render :partial => "templates/header" %>
        <%= render :partial => "templates/navigation", :locals => { :current_menu => @current_menu, :main_menus => @main_menus } %>
        <div id="main">
          <div class="navigation_line">&nbsp;</div>

          <%= yield %>

          <%= yield :admin %>

          <div class="clearer">&nbsp;</div>
        </div>
        <%= render :partial => "templates/footer" %>
      </div>
    </div>

    <%= google_analytics("UA-9937883-1") %>
  </body>
</html>
